package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 攻略评论对象
 */
@Getter@Setter
public class StrategyComment extends BaseDomain{

    public static final Integer STATE_NOMAL = 0; //普通
    public static final Integer STATE_COMMEND = 1; //推荐

    private String comment;//评论内容
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date commentTime;//评论时间
    private String imgUrls;//图片路径
    private Integer starNum;//星星评价
    private Integer state = STATE_COMMEND;//状态
    private Integer likes = 0;//点赞数
    private Integer commentNum = 0;//评论数
    private User user;//评论人
    private Strategy strategy;//评论的攻略
    private List<UserComment> commentList = new ArrayList();//它的所有评论
}